package com.st.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 用户对象 st_users
 *
 * @author zhw
 * @date 2024-10-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("st_users")
public class StUsers implements Serializable
        {
private static final long serialVersionUID = 1L;

    /** 用户编号 */
        @TableId(value="id",type=IdType.AUTO)
    private Integer id;

    /** code */
            @Excel(name = "code")
        @TableField(value = "first_login_code")
    private String firstLoginCode;

    /** OpenId */
            @Excel(name = "OpenId")
        @TableField(value = "open_id")
    private String openId;

    /** 性别  */
            @Excel(name = "性别 ")
        @TableField(value = "gender")
    private Integer gender;

    /** 头像 */
            @Excel(name = "头像")
        @TableField(value = "avatar_url")
    private String avatarUrl;

    /** 微信昵称 */
            @Excel(name = "微信昵称")
        @TableField(value = "nickname")
    private String nickname;

    /** 微信头像 */
            @Excel(name = "微信头像")
        @TableField(value = "wechat_avatar_url")
    private String wechatAvatarUrl;

    /** 年龄 */
            @Excel(name = "年龄")
        @TableField(value = "age")
    private Integer age;

    /** 消费总金额 */
            @Excel(name = "消费总金额")
        @TableField(value = "total_spent")
    private BigDecimal totalSpent;

    /** 是否为VIP */
            @Excel(name = "是否为VIP")
        @TableField(value = "vip_flag")
    private Integer vipFlag;

    /** 用户状态  */
            @Excel(name = "用户状态 ")
        @TableField(value = "user_status")
    private Integer userStatus;



}
